import { Sorter } from './Sorter';
import { NumberColloection } from './NumbersCollection';
import { CharacterCollection } from './CharacterCollection';
import { LinkedList } from './LinkedList';

// const numberColloection = new NumberColloection([10, 5, -8, 0]);
const characterCollection = new CharacterCollection('dear');
const linkedList = new LinkedList();
linkedList.add(100);
linkedList.add(300);
linkedList.add(-50);
linkedList.add(0);

//打印类Sort底下的属性得到正确的排序后的数据结构
//[ -8, 0, 5, 10 ]
characterCollection.sort();
console.log(characterCollection.data);

// linkedList.print();
